﻿using Test.Common;
using Test.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace Test.Common
{
    class MainViewModel 
    {
        public MainModel MainModel { get; set; }
        public CommandBase BtnCommand { get; set; }


        public MainViewModel()
        {
            this.MainModel = new MainModel();
            this.MainModel.TestName = "张三";
            this.BtnCommand = new CommandBase();
            this.BtnCommand.DoExecute = new Action<object>((c)=> {
                (c as Window).Close();
            });

            this.BtnCommand.DoCanExecute = new Func<object, bool>((c)=> { return true; });
        }




    }
}
